if [ "$#" -gt 0 ]
then
    var="$1"
    shift 1
    while [ "$#" -gt 0 ]
    do
	mv "$1" `echo $1 | sed -e "s/$var//"`
	shift 1
    done
else
    echo "Usage : $0 [str_to_rm] [file]"
fi
